﻿@model IEnumerable<SmallBusinessKit.Models.Entities.Item>

@{
    var idx = 1;
    var cnt = Model.Count();
    foreach (var item in Model.ToList())
    {
        <p class="shimTop15">
            <img src="~/Content/Images/@item.ImageUrl" class="photo-border photo-float-left photo2"/>
            <h3>
                @Html.ActionLink(@item.Title, "Detail", "Items", new { @id = item.Id }, null)
            </h3>

            @item.Desc
        </p>

        <br/>
        @Html.ActionLink("Read More...", "Detail", "Items", new { @id = item.Id }, null)

        if (idx != cnt)
        {
            <hr/>
        }
        idx++;
    }
}